<?php


abstract class BaseRingtoneStatisticNew extends BaseObject  implements Persistent {


	
	protected static $peer;


	
	protected $id;


	
	protected $ringtone_id;


	
	protected $download_day_no = 0;


	
	protected $download_week_no = 0;


	
	protected $download_month_no = 0;


	
	protected $download_year_no = 0;


	
	protected $download_today = 0;


	
	protected $download_this_week = 0;


	
	protected $download_this_month = 0;


	
	protected $download_total = 0;


	
	protected $download_yesterday = 0;


	
	protected $download_last_week = 0;


	
	protected $download_last_month = 0;


	
	protected $comment_day_no = 0;


	
	protected $comment_week_no = 0;


	
	protected $comment_month_no = 0;


	
	protected $comment_year_no = 0;


	
	protected $comment_today = 0;


	
	protected $comment_this_week = 0;


	
	protected $comment_this_month = 0;


	
	protected $comment_total = 0;


	
	protected $vote_day_no = 0;


	
	protected $vote_week_no = 0;


	
	protected $vote_month_no = 0;


	
	protected $vote_year_no = 0;


	
	protected $vote_today = 0;


	
	protected $vote_this_week = 0;


	
	protected $vote_this_month = 0;


	
	protected $vote_total = 0;


	
	protected $play_day_no = 0;


	
	protected $play_week_no = 0;


	
	protected $play_month_no = 0;


	
	protected $play_year_no = 0;


	
	protected $play_today = 0;


	
	protected $play_this_week = 0;


	
	protected $play_this_month = 0;


	
	protected $play_total = 0;


	
	protected $recent_download_username;


	
	protected $recent_download_user_id;


	
	protected $recent_download_datetime;


	
	protected $category_id;


	
	protected $category_name;


	
	protected $creator_id;


	
	protected $artist_id;

	
	protected $alreadyInSave = false;

	
	protected $alreadyInValidation = false;

	
	public function getId()
	{

		return $this->id;
	}

	
	public function getRingtoneId()
	{

		return $this->ringtone_id;
	}

	
	public function getDownloadDayNo()
	{

		return $this->download_day_no;
	}

	
	public function getDownloadWeekNo()
	{

		return $this->download_week_no;
	}

	
	public function getDownloadMonthNo()
	{

		return $this->download_month_no;
	}

	
	public function getDownloadYearNo()
	{

		return $this->download_year_no;
	}

	
	public function getDownloadToday()
	{

		return $this->download_today;
	}

	
	public function getDownloadThisWeek()
	{

		return $this->download_this_week;
	}

	
	public function getDownloadThisMonth()
	{

		return $this->download_this_month;
	}

	
	public function getDownloadTotal()
	{

		return $this->download_total;
	}

	
	public function getDownloadYesterday()
	{

		return $this->download_yesterday;
	}

	
	public function getDownloadLastWeek()
	{

		return $this->download_last_week;
	}

	
	public function getDownloadLastMonth()
	{

		return $this->download_last_month;
	}

	
	public function getCommentDayNo()
	{

		return $this->comment_day_no;
	}

	
	public function getCommentWeekNo()
	{

		return $this->comment_week_no;
	}

	
	public function getCommentMonthNo()
	{

		return $this->comment_month_no;
	}

	
	public function getCommentYearNo()
	{

		return $this->comment_year_no;
	}

	
	public function getCommentToday()
	{

		return $this->comment_today;
	}

	
	public function getCommentThisWeek()
	{

		return $this->comment_this_week;
	}

	
	public function getCommentThisMonth()
	{

		return $this->comment_this_month;
	}

	
	public function getCommentTotal()
	{

		return $this->comment_total;
	}

	
	public function getVoteDayNo()
	{

		return $this->vote_day_no;
	}

	
	public function getVoteWeekNo()
	{

		return $this->vote_week_no;
	}

	
	public function getVoteMonthNo()
	{

		return $this->vote_month_no;
	}

	
	public function getVoteYearNo()
	{

		return $this->vote_year_no;
	}

	
	public function getVoteToday()
	{

		return $this->vote_today;
	}

	
	public function getVoteThisWeek()
	{

		return $this->vote_this_week;
	}

	
	public function getVoteThisMonth()
	{

		return $this->vote_this_month;
	}

	
	public function getVoteTotal()
	{

		return $this->vote_total;
	}

	
	public function getPlayDayNo()
	{

		return $this->play_day_no;
	}

	
	public function getPlayWeekNo()
	{

		return $this->play_week_no;
	}

	
	public function getPlayMonthNo()
	{

		return $this->play_month_no;
	}

	
	public function getPlayYearNo()
	{

		return $this->play_year_no;
	}

	
	public function getPlayToday()
	{

		return $this->play_today;
	}

	
	public function getPlayThisWeek()
	{

		return $this->play_this_week;
	}

	
	public function getPlayThisMonth()
	{

		return $this->play_this_month;
	}

	
	public function getPlayTotal()
	{

		return $this->play_total;
	}

	
	public function getRecentDownloadUsername()
	{

		return $this->recent_download_username;
	}

	
	public function getRecentDownloadUserId()
	{

		return $this->recent_download_user_id;
	}

	
	public function getRecentDownloadDatetime($format = 'Y-m-d H:i:s')
	{

		if ($this->recent_download_datetime === null || $this->recent_download_datetime === '') {
			return null;
		} elseif (!is_int($this->recent_download_datetime)) {
						$ts = strtotime($this->recent_download_datetime);
			if ($ts === -1 || $ts === false) { 				throw new PropelException("Unable to parse value of [recent_download_datetime] as date/time value: " . var_export($this->recent_download_datetime, true));
			}
		} else {
			$ts = $this->recent_download_datetime;
		}
		if ($format === null) {
			return $ts;
		} elseif (strpos($format, '%') !== false) {
			return strftime($format, $ts);
		} else {
			return date($format, $ts);
		}
	}

	
	public function getCategoryId()
	{

		return $this->category_id;
	}

	
	public function getCategoryName()
	{

		return $this->category_name;
	}

	
	public function getCreatorId()
	{

		return $this->creator_id;
	}

	
	public function getArtistId()
	{

		return $this->artist_id;
	}

	
	public function setId($v)
	{

		
		
		if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->id !== $v) {
			$this->id = $v;
			$this->modifiedColumns[] = RingtoneStatisticNewPeer::ID;
		}

	} 
	
	public function setRingtoneId($v)
	{

		
		
		if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->ringtone_id !== $v) {
			$this->ringtone_id = $v;
			$this->modifiedColumns[] = RingtoneStatisticNewPeer::RINGTONE_ID;
		}

	} 
	
	public function setDownloadDayNo($v)
	{

		
		
		if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->download_day_no !== $v || $v === 0) {
			$this->download_day_no = $v;
			$this->modifiedColumns[] = RingtoneStatisticNewPeer::DOWNLOAD_DAY_NO;
		}

	} 
	
	public function setDownloadWeekNo($v)
	{

		
		
		if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->download_week_no !== $v || $v === 0) {
			$this->download_week_no = $v;
			$this->modifiedColumns[] = RingtoneStatisticNewPeer::DOWNLOAD_WEEK_NO;
		}

	} 
	
	public function setDownloadMonthNo($v)
	{

		
		
		if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->download_month_no !== $v || $v === 0) {
			$this->download_month_no = $v;
			$this->modifiedColumns[] = RingtoneStatisticNewPeer::DOWNLOAD_MONTH_NO;
		}

	} 
	
	public function setDownloadYearNo($v)
	{

		
		
		if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->download_year_no !== $v || $v === 0) {
			$this->download_year_no = $v;
			$this->modifiedColumns[] = RingtoneStatisticNewPeer::DOWNLOAD_YEAR_NO;
		}

	} 
	
	public function setDownloadToday($v)
	{

		
		
		if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->download_today !== $v || $v === 0) {
			$this->download_today = $v;
			$this->modifiedColumns[] = RingtoneStatisticNewPeer::DOWNLOAD_TODAY;
		}

	} 
	
	public function setDownloadThisWeek($v)
	{

		
		
		if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->download_this_week !== $v || $v === 0) {
			$this->download_this_week = $v;
			$this->modifiedColumns[] = RingtoneStatisticNewPeer::DOWNLOAD_THIS_WEEK;
		}

	} 
	
	public function setDownloadThisMonth($v)
	{

		
		
		if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->download_this_month !== $v || $v === 0) {
			$this->download_this_month = $v;
			$this->modifiedColumns[] = RingtoneStatisticNewPeer::DOWNLOAD_THIS_MONTH;
		}

	} 
	
	public function setDownloadTotal($v)
	{

		
		
		if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->download_total !== $v || $v === 0) {
			$this->download_total = $v;
			$this->modifiedColumns[] = RingtoneStatisticNewPeer::DOWNLOAD_TOTAL;
		}

	} 
	
	public function setDownloadYesterday($v)
	{

		
		
		if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->download_yesterday !== $v || $v === 0) {
			$this->download_yesterday = $v;
			$this->modifiedColumns[] = RingtoneStatisticNewPeer::DOWNLOAD_YESTERDAY;
		}

	} 
	
	public function setDownloadLastWeek($v)
	{

		
		
		if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->download_last_week !== $v || $v === 0) {
			$this->download_last_week = $v;
			$this->modifiedColumns[] = RingtoneStatisticNewPeer::DOWNLOAD_LAST_WEEK;
		}

	} 
	
	public function setDownloadLastMonth($v)
	{

		
		
		if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->download_last_month !== $v || $v === 0) {
			$this->download_last_month = $v;
			$this->modifiedColumns[] = RingtoneStatisticNewPeer::DOWNLOAD_LAST_MONTH;
		}

	} 
	
	public function setCommentDayNo($v)
	{

		
		
		if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->comment_day_no !== $v || $v === 0) {
			$this->comment_day_no = $v;
			$this->modifiedColumns[] = RingtoneStatisticNewPeer::COMMENT_DAY_NO;
		}

	} 
	
	public function setCommentWeekNo($v)
	{

		
		
		if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->comment_week_no !== $v || $v === 0) {
			$this->comment_week_no = $v;
			$this->modifiedColumns[] = RingtoneStatisticNewPeer::COMMENT_WEEK_NO;
		}

	} 
	
	public function setCommentMonthNo($v)
	{

		
		
		if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->comment_month_no !== $v || $v === 0) {
			$this->comment_month_no = $v;
			$this->modifiedColumns[] = RingtoneStatisticNewPeer::COMMENT_MONTH_NO;
		}

	} 
	
	public function setCommentYearNo($v)
	{

		
		
		if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->comment_year_no !== $v || $v === 0) {
			$this->comment_year_no = $v;
			$this->modifiedColumns[] = RingtoneStatisticNewPeer::COMMENT_YEAR_NO;
		}

	} 
	
	public function setCommentToday($v)
	{

		
		
		if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->comment_today !== $v || $v === 0) {
			$this->comment_today = $v;
			$this->modifiedColumns[] = RingtoneStatisticNewPeer::COMMENT_TODAY;
		}

	} 
	
	public function setCommentThisWeek($v)
	{

		
		
		if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->comment_this_week !== $v || $v === 0) {
			$this->comment_this_week = $v;
			$this->modifiedColumns[] = RingtoneStatisticNewPeer::COMMENT_THIS_WEEK;
		}

	} 
	
	public function setCommentThisMonth($v)
	{

		
		
		if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->comment_this_month !== $v || $v === 0) {
			$this->comment_this_month = $v;
			$this->modifiedColumns[] = RingtoneStatisticNewPeer::COMMENT_THIS_MONTH;
		}

	} 
	
	public function setCommentTotal($v)
	{

		
		
		if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->comment_total !== $v || $v === 0) {
			$this->comment_total = $v;
			$this->modifiedColumns[] = RingtoneStatisticNewPeer::COMMENT_TOTAL;
		}

	} 
	
	public function setVoteDayNo($v)
	{

		
		
		if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->vote_day_no !== $v || $v === 0) {
			$this->vote_day_no = $v;
			$this->modifiedColumns[] = RingtoneStatisticNewPeer::VOTE_DAY_NO;
		}

	} 
	
	public function setVoteWeekNo($v)
	{

		
		
		if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->vote_week_no !== $v || $v === 0) {
			$this->vote_week_no = $v;
			$this->modifiedColumns[] = RingtoneStatisticNewPeer::VOTE_WEEK_NO;
		}

	} 
	
	public function setVoteMonthNo($v)
	{

		
		
		if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->vote_month_no !== $v || $v === 0) {
			$this->vote_month_no = $v;
			$this->modifiedColumns[] = RingtoneStatisticNewPeer::VOTE_MONTH_NO;
		}

	} 
	
	public function setVoteYearNo($v)
	{

		
		
		if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->vote_year_no !== $v || $v === 0) {
			$this->vote_year_no = $v;
			$this->modifiedColumns[] = RingtoneStatisticNewPeer::VOTE_YEAR_NO;
		}

	} 
	
	public function setVoteToday($v)
	{

		
		
		if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->vote_today !== $v || $v === 0) {
			$this->vote_today = $v;
			$this->modifiedColumns[] = RingtoneStatisticNewPeer::VOTE_TODAY;
		}

	} 
	
	public function setVoteThisWeek($v)
	{

		
		
		if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->vote_this_week !== $v || $v === 0) {
			$this->vote_this_week = $v;
			$this->modifiedColumns[] = RingtoneStatisticNewPeer::VOTE_THIS_WEEK;
		}

	} 
	
	public function setVoteThisMonth($v)
	{

		
		
		if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->vote_this_month !== $v || $v === 0) {
			$this->vote_this_month = $v;
			$this->modifiedColumns[] = RingtoneStatisticNewPeer::VOTE_THIS_MONTH;
		}

	} 
	
	public function setVoteTotal($v)
	{

		
		
		if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->vote_total !== $v || $v === 0) {
			$this->vote_total = $v;
			$this->modifiedColumns[] = RingtoneStatisticNewPeer::VOTE_TOTAL;
		}

	} 
	
	public function setPlayDayNo($v)
	{

		
		
		if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->play_day_no !== $v || $v === 0) {
			$this->play_day_no = $v;
			$this->modifiedColumns[] = RingtoneStatisticNewPeer::PLAY_DAY_NO;
		}

	} 
	
	public function setPlayWeekNo($v)
	{

		
		
		if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->play_week_no !== $v || $v === 0) {
			$this->play_week_no = $v;
			$this->modifiedColumns[] = RingtoneStatisticNewPeer::PLAY_WEEK_NO;
		}

	} 
	
	public function setPlayMonthNo($v)
	{

		
		
		if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->play_month_no !== $v || $v === 0) {
			$this->play_month_no = $v;
			$this->modifiedColumns[] = RingtoneStatisticNewPeer::PLAY_MONTH_NO;
		}

	} 
	
	public function setPlayYearNo($v)
	{

		
		
		if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->play_year_no !== $v || $v === 0) {
			$this->play_year_no = $v;
			$this->modifiedColumns[] = RingtoneStatisticNewPeer::PLAY_YEAR_NO;
		}

	} 
	
	public function setPlayToday($v)
	{

		
		
		if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->play_today !== $v || $v === 0) {
			$this->play_today = $v;
			$this->modifiedColumns[] = RingtoneStatisticNewPeer::PLAY_TODAY;
		}

	} 
	
	public function setPlayThisWeek($v)
	{

		
		
		if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->play_this_week !== $v || $v === 0) {
			$this->play_this_week = $v;
			$this->modifiedColumns[] = RingtoneStatisticNewPeer::PLAY_THIS_WEEK;
		}

	} 
	
	public function setPlayThisMonth($v)
	{

		
		
		if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->play_this_month !== $v || $v === 0) {
			$this->play_this_month = $v;
			$this->modifiedColumns[] = RingtoneStatisticNewPeer::PLAY_THIS_MONTH;
		}

	} 
	
	public function setPlayTotal($v)
	{

		
		
		if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->play_total !== $v || $v === 0) {
			$this->play_total = $v;
			$this->modifiedColumns[] = RingtoneStatisticNewPeer::PLAY_TOTAL;
		}

	} 
	
	public function setRecentDownloadUsername($v)
	{

		
		
		if ($v !== null && !is_string($v)) {
			$v = (string) $v; 
		}

		if ($this->recent_download_username !== $v) {
			$this->recent_download_username = $v;
			$this->modifiedColumns[] = RingtoneStatisticNewPeer::RECENT_DOWNLOAD_USERNAME;
		}

	} 
	
	public function setRecentDownloadUserId($v)
	{

		
		
		if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->recent_download_user_id !== $v) {
			$this->recent_download_user_id = $v;
			$this->modifiedColumns[] = RingtoneStatisticNewPeer::RECENT_DOWNLOAD_USER_ID;
		}

	} 
	
	public function setRecentDownloadDatetime($v)
	{

		if ($v !== null && !is_int($v)) {
			$ts = strtotime($v);
			if ($ts === -1 || $ts === false) { 				throw new PropelException("Unable to parse date/time value for [recent_download_datetime] from input: " . var_export($v, true));
			}
		} else {
			$ts = $v;
		}
		if ($this->recent_download_datetime !== $ts) {
			$this->recent_download_datetime = $ts;
			$this->modifiedColumns[] = RingtoneStatisticNewPeer::RECENT_DOWNLOAD_DATETIME;
		}

	} 
	
	public function setCategoryId($v)
	{

		
		
		if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->category_id !== $v) {
			$this->category_id = $v;
			$this->modifiedColumns[] = RingtoneStatisticNewPeer::CATEGORY_ID;
		}

	} 
	
	public function setCategoryName($v)
	{

		
		
		if ($v !== null && !is_string($v)) {
			$v = (string) $v; 
		}

		if ($this->category_name !== $v) {
			$this->category_name = $v;
			$this->modifiedColumns[] = RingtoneStatisticNewPeer::CATEGORY_NAME;
		}

	} 
	
	public function setCreatorId($v)
	{

		
		
		if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->creator_id !== $v) {
			$this->creator_id = $v;
			$this->modifiedColumns[] = RingtoneStatisticNewPeer::CREATOR_ID;
		}

	} 
	
	public function setArtistId($v)
	{

		
		
		if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->artist_id !== $v) {
			$this->artist_id = $v;
			$this->modifiedColumns[] = RingtoneStatisticNewPeer::ARTIST_ID;
		}

	} 
	
	public function hydrate(ResultSet $rs, $startcol = 1)
	{
		try {

			$this->id = $rs->getInt($startcol + 0);

			$this->ringtone_id = $rs->getInt($startcol + 1);

			$this->download_day_no = $rs->getInt($startcol + 2);

			$this->download_week_no = $rs->getInt($startcol + 3);

			$this->download_month_no = $rs->getInt($startcol + 4);

			$this->download_year_no = $rs->getInt($startcol + 5);

			$this->download_today = $rs->getInt($startcol + 6);

			$this->download_this_week = $rs->getInt($startcol + 7);

			$this->download_this_month = $rs->getInt($startcol + 8);

			$this->download_total = $rs->getInt($startcol + 9);

			$this->download_yesterday = $rs->getInt($startcol + 10);

			$this->download_last_week = $rs->getInt($startcol + 11);

			$this->download_last_month = $rs->getInt($startcol + 12);

			$this->comment_day_no = $rs->getInt($startcol + 13);

			$this->comment_week_no = $rs->getInt($startcol + 14);

			$this->comment_month_no = $rs->getInt($startcol + 15);

			$this->comment_year_no = $rs->getInt($startcol + 16);

			$this->comment_today = $rs->getInt($startcol + 17);

			$this->comment_this_week = $rs->getInt($startcol + 18);

			$this->comment_this_month = $rs->getInt($startcol + 19);

			$this->comment_total = $rs->getInt($startcol + 20);

			$this->vote_day_no = $rs->getInt($startcol + 21);

			$this->vote_week_no = $rs->getInt($startcol + 22);

			$this->vote_month_no = $rs->getInt($startcol + 23);

			$this->vote_year_no = $rs->getInt($startcol + 24);

			$this->vote_today = $rs->getInt($startcol + 25);

			$this->vote_this_week = $rs->getInt($startcol + 26);

			$this->vote_this_month = $rs->getInt($startcol + 27);

			$this->vote_total = $rs->getInt($startcol + 28);

			$this->play_day_no = $rs->getInt($startcol + 29);

			$this->play_week_no = $rs->getInt($startcol + 30);

			$this->play_month_no = $rs->getInt($startcol + 31);

			$this->play_year_no = $rs->getInt($startcol + 32);

			$this->play_today = $rs->getInt($startcol + 33);

			$this->play_this_week = $rs->getInt($startcol + 34);

			$this->play_this_month = $rs->getInt($startcol + 35);

			$this->play_total = $rs->getInt($startcol + 36);

			$this->recent_download_username = $rs->getString($startcol + 37);

			$this->recent_download_user_id = $rs->getInt($startcol + 38);

			$this->recent_download_datetime = $rs->getTimestamp($startcol + 39, null);

			$this->category_id = $rs->getInt($startcol + 40);

			$this->category_name = $rs->getString($startcol + 41);

			$this->creator_id = $rs->getInt($startcol + 42);

			$this->artist_id = $rs->getInt($startcol + 43);

			$this->resetModified();

			$this->setNew(false);

						return $startcol + 44; 
		} catch (Exception $e) {
			throw new PropelException("Error populating RingtoneStatisticNew object", $e);
		}
	}

	
	public function delete($con = null)
	{
		if ($this->isDeleted()) {
			throw new PropelException("This object has already been deleted.");
		}

		if ($con === null) {
			$con = Propel::getConnection(RingtoneStatisticNewPeer::DATABASE_NAME);
		}

		try {
			$con->begin();
			RingtoneStatisticNewPeer::doDelete($this, $con);
			$this->setDeleted(true);
			$con->commit();
		} catch (PropelException $e) {
			$con->rollback();
			throw $e;
		}
	}

	
	public function save($con = null)
	{
		if ($this->isDeleted()) {
			throw new PropelException("You cannot save an object that has been deleted.");
		}

		if ($con === null) {
			$con = Propel::getConnection(RingtoneStatisticNewPeer::DATABASE_NAME);
		}

		try {
			$con->begin();
			$affectedRows = $this->doSave($con);
			$con->commit();
			return $affectedRows;
		} catch (PropelException $e) {
			$con->rollback();
			throw $e;
		}
	}

	
	protected function doSave($con)
	{
		$affectedRows = 0; 		if (!$this->alreadyInSave) {
			$this->alreadyInSave = true;


						if ($this->isModified()) {
				if ($this->isNew()) {
					$pk = RingtoneStatisticNewPeer::doInsert($this, $con);
					$affectedRows += 1; 										 										 
					$this->setId($pk);  
					$this->setNew(false);
				} else {
					$affectedRows += RingtoneStatisticNewPeer::doUpdate($this, $con);
				}
				$this->resetModified(); 			}

			$this->alreadyInSave = false;
		}
		return $affectedRows;
	} 
	
	protected $validationFailures = array();

	
	public function getValidationFailures()
	{
		return $this->validationFailures;
	}

	
	public function validate($columns = null)
	{
		$res = $this->doValidate($columns);
		if ($res === true) {
			$this->validationFailures = array();
			return true;
		} else {
			$this->validationFailures = $res;
			return false;
		}
	}

	
	protected function doValidate($columns = null)
	{
		if (!$this->alreadyInValidation) {
			$this->alreadyInValidation = true;
			$retval = null;

			$failureMap = array();


			if (($retval = RingtoneStatisticNewPeer::doValidate($this, $columns)) !== true) {
				$failureMap = array_merge($failureMap, $retval);
			}



			$this->alreadyInValidation = false;
		}

		return (!empty($failureMap) ? $failureMap : true);
	}

	
	public function getByName($name, $type = BasePeer::TYPE_PHPNAME)
	{
		$pos = RingtoneStatisticNewPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM);
		return $this->getByPosition($pos);
	}

	
	public function getByPosition($pos)
	{
		switch($pos) {
			case 0:
				return $this->getId();
				break;
			case 1:
				return $this->getRingtoneId();
				break;
			case 2:
				return $this->getDownloadDayNo();
				break;
			case 3:
				return $this->getDownloadWeekNo();
				break;
			case 4:
				return $this->getDownloadMonthNo();
				break;
			case 5:
				return $this->getDownloadYearNo();
				break;
			case 6:
				return $this->getDownloadToday();
				break;
			case 7:
				return $this->getDownloadThisWeek();
				break;
			case 8:
				return $this->getDownloadThisMonth();
				break;
			case 9:
				return $this->getDownloadTotal();
				break;
			case 10:
				return $this->getDownloadYesterday();
				break;
			case 11:
				return $this->getDownloadLastWeek();
				break;
			case 12:
				return $this->getDownloadLastMonth();
				break;
			case 13:
				return $this->getCommentDayNo();
				break;
			case 14:
				return $this->getCommentWeekNo();
				break;
			case 15:
				return $this->getCommentMonthNo();
				break;
			case 16:
				return $this->getCommentYearNo();
				break;
			case 17:
				return $this->getCommentToday();
				break;
			case 18:
				return $this->getCommentThisWeek();
				break;
			case 19:
				return $this->getCommentThisMonth();
				break;
			case 20:
				return $this->getCommentTotal();
				break;
			case 21:
				return $this->getVoteDayNo();
				break;
			case 22:
				return $this->getVoteWeekNo();
				break;
			case 23:
				return $this->getVoteMonthNo();
				break;
			case 24:
				return $this->getVoteYearNo();
				break;
			case 25:
				return $this->getVoteToday();
				break;
			case 26:
				return $this->getVoteThisWeek();
				break;
			case 27:
				return $this->getVoteThisMonth();
				break;
			case 28:
				return $this->getVoteTotal();
				break;
			case 29:
				return $this->getPlayDayNo();
				break;
			case 30:
				return $this->getPlayWeekNo();
				break;
			case 31:
				return $this->getPlayMonthNo();
				break;
			case 32:
				return $this->getPlayYearNo();
				break;
			case 33:
				return $this->getPlayToday();
				break;
			case 34:
				return $this->getPlayThisWeek();
				break;
			case 35:
				return $this->getPlayThisMonth();
				break;
			case 36:
				return $this->getPlayTotal();
				break;
			case 37:
				return $this->getRecentDownloadUsername();
				break;
			case 38:
				return $this->getRecentDownloadUserId();
				break;
			case 39:
				return $this->getRecentDownloadDatetime();
				break;
			case 40:
				return $this->getCategoryId();
				break;
			case 41:
				return $this->getCategoryName();
				break;
			case 42:
				return $this->getCreatorId();
				break;
			case 43:
				return $this->getArtistId();
				break;
			default:
				return null;
				break;
		} 	}

	
	public function toArray($keyType = BasePeer::TYPE_PHPNAME)
	{
		$keys = RingtoneStatisticNewPeer::getFieldNames($keyType);
		$result = array(
			$keys[0] => $this->getId(),
			$keys[1] => $this->getRingtoneId(),
			$keys[2] => $this->getDownloadDayNo(),
			$keys[3] => $this->getDownloadWeekNo(),
			$keys[4] => $this->getDownloadMonthNo(),
			$keys[5] => $this->getDownloadYearNo(),
			$keys[6] => $this->getDownloadToday(),
			$keys[7] => $this->getDownloadThisWeek(),
			$keys[8] => $this->getDownloadThisMonth(),
			$keys[9] => $this->getDownloadTotal(),
			$keys[10] => $this->getDownloadYesterday(),
			$keys[11] => $this->getDownloadLastWeek(),
			$keys[12] => $this->getDownloadLastMonth(),
			$keys[13] => $this->getCommentDayNo(),
			$keys[14] => $this->getCommentWeekNo(),
			$keys[15] => $this->getCommentMonthNo(),
			$keys[16] => $this->getCommentYearNo(),
			$keys[17] => $this->getCommentToday(),
			$keys[18] => $this->getCommentThisWeek(),
			$keys[19] => $this->getCommentThisMonth(),
			$keys[20] => $this->getCommentTotal(),
			$keys[21] => $this->getVoteDayNo(),
			$keys[22] => $this->getVoteWeekNo(),
			$keys[23] => $this->getVoteMonthNo(),
			$keys[24] => $this->getVoteYearNo(),
			$keys[25] => $this->getVoteToday(),
			$keys[26] => $this->getVoteThisWeek(),
			$keys[27] => $this->getVoteThisMonth(),
			$keys[28] => $this->getVoteTotal(),
			$keys[29] => $this->getPlayDayNo(),
			$keys[30] => $this->getPlayWeekNo(),
			$keys[31] => $this->getPlayMonthNo(),
			$keys[32] => $this->getPlayYearNo(),
			$keys[33] => $this->getPlayToday(),
			$keys[34] => $this->getPlayThisWeek(),
			$keys[35] => $this->getPlayThisMonth(),
			$keys[36] => $this->getPlayTotal(),
			$keys[37] => $this->getRecentDownloadUsername(),
			$keys[38] => $this->getRecentDownloadUserId(),
			$keys[39] => $this->getRecentDownloadDatetime(),
			$keys[40] => $this->getCategoryId(),
			$keys[41] => $this->getCategoryName(),
			$keys[42] => $this->getCreatorId(),
			$keys[43] => $this->getArtistId(),
		);
		return $result;
	}

	
	public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME)
	{
		$pos = RingtoneStatisticNewPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM);
		return $this->setByPosition($pos, $value);
	}

	
	public function setByPosition($pos, $value)
	{
		switch($pos) {
			case 0:
				$this->setId($value);
				break;
			case 1:
				$this->setRingtoneId($value);
				break;
			case 2:
				$this->setDownloadDayNo($value);
				break;
			case 3:
				$this->setDownloadWeekNo($value);
				break;
			case 4:
				$this->setDownloadMonthNo($value);
				break;
			case 5:
				$this->setDownloadYearNo($value);
				break;
			case 6:
				$this->setDownloadToday($value);
				break;
			case 7:
				$this->setDownloadThisWeek($value);
				break;
			case 8:
				$this->setDownloadThisMonth($value);
				break;
			case 9:
				$this->setDownloadTotal($value);
				break;
			case 10:
				$this->setDownloadYesterday($value);
				break;
			case 11:
				$this->setDownloadLastWeek($value);
				break;
			case 12:
				$this->setDownloadLastMonth($value);
				break;
			case 13:
				$this->setCommentDayNo($value);
				break;
			case 14:
				$this->setCommentWeekNo($value);
				break;
			case 15:
				$this->setCommentMonthNo($value);
				break;
			case 16:
				$this->setCommentYearNo($value);
				break;
			case 17:
				$this->setCommentToday($value);
				break;
			case 18:
				$this->setCommentThisWeek($value);
				break;
			case 19:
				$this->setCommentThisMonth($value);
				break;
			case 20:
				$this->setCommentTotal($value);
				break;
			case 21:
				$this->setVoteDayNo($value);
				break;
			case 22:
				$this->setVoteWeekNo($value);
				break;
			case 23:
				$this->setVoteMonthNo($value);
				break;
			case 24:
				$this->setVoteYearNo($value);
				break;
			case 25:
				$this->setVoteToday($value);
				break;
			case 26:
				$this->setVoteThisWeek($value);
				break;
			case 27:
				$this->setVoteThisMonth($value);
				break;
			case 28:
				$this->setVoteTotal($value);
				break;
			case 29:
				$this->setPlayDayNo($value);
				break;
			case 30:
				$this->setPlayWeekNo($value);
				break;
			case 31:
				$this->setPlayMonthNo($value);
				break;
			case 32:
				$this->setPlayYearNo($value);
				break;
			case 33:
				$this->setPlayToday($value);
				break;
			case 34:
				$this->setPlayThisWeek($value);
				break;
			case 35:
				$this->setPlayThisMonth($value);
				break;
			case 36:
				$this->setPlayTotal($value);
				break;
			case 37:
				$this->setRecentDownloadUsername($value);
				break;
			case 38:
				$this->setRecentDownloadUserId($value);
				break;
			case 39:
				$this->setRecentDownloadDatetime($value);
				break;
			case 40:
				$this->setCategoryId($value);
				break;
			case 41:
				$this->setCategoryName($value);
				break;
			case 42:
				$this->setCreatorId($value);
				break;
			case 43:
				$this->setArtistId($value);
				break;
		} 	}

	
	public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME)
	{
		$keys = RingtoneStatisticNewPeer::getFieldNames($keyType);

		if (array_key_exists($keys[0], $arr)) $this->setId($arr[$keys[0]]);
		if (array_key_exists($keys[1], $arr)) $this->setRingtoneId($arr[$keys[1]]);
		if (array_key_exists($keys[2], $arr)) $this->setDownloadDayNo($arr[$keys[2]]);
		if (array_key_exists($keys[3], $arr)) $this->setDownloadWeekNo($arr[$keys[3]]);
		if (array_key_exists($keys[4], $arr)) $this->setDownloadMonthNo($arr[$keys[4]]);
		if (array_key_exists($keys[5], $arr)) $this->setDownloadYearNo($arr[$keys[5]]);
		if (array_key_exists($keys[6], $arr)) $this->setDownloadToday($arr[$keys[6]]);
		if (array_key_exists($keys[7], $arr)) $this->setDownloadThisWeek($arr[$keys[7]]);
		if (array_key_exists($keys[8], $arr)) $this->setDownloadThisMonth($arr[$keys[8]]);
		if (array_key_exists($keys[9], $arr)) $this->setDownloadTotal($arr[$keys[9]]);
		if (array_key_exists($keys[10], $arr)) $this->setDownloadYesterday($arr[$keys[10]]);
		if (array_key_exists($keys[11], $arr)) $this->setDownloadLastWeek($arr[$keys[11]]);
		if (array_key_exists($keys[12], $arr)) $this->setDownloadLastMonth($arr[$keys[12]]);
		if (array_key_exists($keys[13], $arr)) $this->setCommentDayNo($arr[$keys[13]]);
		if (array_key_exists($keys[14], $arr)) $this->setCommentWeekNo($arr[$keys[14]]);
		if (array_key_exists($keys[15], $arr)) $this->setCommentMonthNo($arr[$keys[15]]);
		if (array_key_exists($keys[16], $arr)) $this->setCommentYearNo($arr[$keys[16]]);
		if (array_key_exists($keys[17], $arr)) $this->setCommentToday($arr[$keys[17]]);
		if (array_key_exists($keys[18], $arr)) $this->setCommentThisWeek($arr[$keys[18]]);
		if (array_key_exists($keys[19], $arr)) $this->setCommentThisMonth($arr[$keys[19]]);
		if (array_key_exists($keys[20], $arr)) $this->setCommentTotal($arr[$keys[20]]);
		if (array_key_exists($keys[21], $arr)) $this->setVoteDayNo($arr[$keys[21]]);
		if (array_key_exists($keys[22], $arr)) $this->setVoteWeekNo($arr[$keys[22]]);
		if (array_key_exists($keys[23], $arr)) $this->setVoteMonthNo($arr[$keys[23]]);
		if (array_key_exists($keys[24], $arr)) $this->setVoteYearNo($arr[$keys[24]]);
		if (array_key_exists($keys[25], $arr)) $this->setVoteToday($arr[$keys[25]]);
		if (array_key_exists($keys[26], $arr)) $this->setVoteThisWeek($arr[$keys[26]]);
		if (array_key_exists($keys[27], $arr)) $this->setVoteThisMonth($arr[$keys[27]]);
		if (array_key_exists($keys[28], $arr)) $this->setVoteTotal($arr[$keys[28]]);
		if (array_key_exists($keys[29], $arr)) $this->setPlayDayNo($arr[$keys[29]]);
		if (array_key_exists($keys[30], $arr)) $this->setPlayWeekNo($arr[$keys[30]]);
		if (array_key_exists($keys[31], $arr)) $this->setPlayMonthNo($arr[$keys[31]]);
		if (array_key_exists($keys[32], $arr)) $this->setPlayYearNo($arr[$keys[32]]);
		if (array_key_exists($keys[33], $arr)) $this->setPlayToday($arr[$keys[33]]);
		if (array_key_exists($keys[34], $arr)) $this->setPlayThisWeek($arr[$keys[34]]);
		if (array_key_exists($keys[35], $arr)) $this->setPlayThisMonth($arr[$keys[35]]);
		if (array_key_exists($keys[36], $arr)) $this->setPlayTotal($arr[$keys[36]]);
		if (array_key_exists($keys[37], $arr)) $this->setRecentDownloadUsername($arr[$keys[37]]);
		if (array_key_exists($keys[38], $arr)) $this->setRecentDownloadUserId($arr[$keys[38]]);
		if (array_key_exists($keys[39], $arr)) $this->setRecentDownloadDatetime($arr[$keys[39]]);
		if (array_key_exists($keys[40], $arr)) $this->setCategoryId($arr[$keys[40]]);
		if (array_key_exists($keys[41], $arr)) $this->setCategoryName($arr[$keys[41]]);
		if (array_key_exists($keys[42], $arr)) $this->setCreatorId($arr[$keys[42]]);
		if (array_key_exists($keys[43], $arr)) $this->setArtistId($arr[$keys[43]]);
	}

	
	public function buildCriteria()
	{
		$criteria = new Criteria(RingtoneStatisticNewPeer::DATABASE_NAME);

		if ($this->isColumnModified(RingtoneStatisticNewPeer::ID)) $criteria->add(RingtoneStatisticNewPeer::ID, $this->id);
		if ($this->isColumnModified(RingtoneStatisticNewPeer::RINGTONE_ID)) $criteria->add(RingtoneStatisticNewPeer::RINGTONE_ID, $this->ringtone_id);
		if ($this->isColumnModified(RingtoneStatisticNewPeer::DOWNLOAD_DAY_NO)) $criteria->add(RingtoneStatisticNewPeer::DOWNLOAD_DAY_NO, $this->download_day_no);
		if ($this->isColumnModified(RingtoneStatisticNewPeer::DOWNLOAD_WEEK_NO)) $criteria->add(RingtoneStatisticNewPeer::DOWNLOAD_WEEK_NO, $this->download_week_no);
		if ($this->isColumnModified(RingtoneStatisticNewPeer::DOWNLOAD_MONTH_NO)) $criteria->add(RingtoneStatisticNewPeer::DOWNLOAD_MONTH_NO, $this->download_month_no);
		if ($this->isColumnModified(RingtoneStatisticNewPeer::DOWNLOAD_YEAR_NO)) $criteria->add(RingtoneStatisticNewPeer::DOWNLOAD_YEAR_NO, $this->download_year_no);
		if ($this->isColumnModified(RingtoneStatisticNewPeer::DOWNLOAD_TODAY)) $criteria->add(RingtoneStatisticNewPeer::DOWNLOAD_TODAY, $this->download_today);
		if ($this->isColumnModified(RingtoneStatisticNewPeer::DOWNLOAD_THIS_WEEK)) $criteria->add(RingtoneStatisticNewPeer::DOWNLOAD_THIS_WEEK, $this->download_this_week);
		if ($this->isColumnModified(RingtoneStatisticNewPeer::DOWNLOAD_THIS_MONTH)) $criteria->add(RingtoneStatisticNewPeer::DOWNLOAD_THIS_MONTH, $this->download_this_month);
		if ($this->isColumnModified(RingtoneStatisticNewPeer::DOWNLOAD_TOTAL)) $criteria->add(RingtoneStatisticNewPeer::DOWNLOAD_TOTAL, $this->download_total);
		if ($this->isColumnModified(RingtoneStatisticNewPeer::DOWNLOAD_YESTERDAY)) $criteria->add(RingtoneStatisticNewPeer::DOWNLOAD_YESTERDAY, $this->download_yesterday);
		if ($this->isColumnModified(RingtoneStatisticNewPeer::DOWNLOAD_LAST_WEEK)) $criteria->add(RingtoneStatisticNewPeer::DOWNLOAD_LAST_WEEK, $this->download_last_week);
		if ($this->isColumnModified(RingtoneStatisticNewPeer::DOWNLOAD_LAST_MONTH)) $criteria->add(RingtoneStatisticNewPeer::DOWNLOAD_LAST_MONTH, $this->download_last_month);
		if ($this->isColumnModified(RingtoneStatisticNewPeer::COMMENT_DAY_NO)) $criteria->add(RingtoneStatisticNewPeer::COMMENT_DAY_NO, $this->comment_day_no);
		if ($this->isColumnModified(RingtoneStatisticNewPeer::COMMENT_WEEK_NO)) $criteria->add(RingtoneStatisticNewPeer::COMMENT_WEEK_NO, $this->comment_week_no);
		if ($this->isColumnModified(RingtoneStatisticNewPeer::COMMENT_MONTH_NO)) $criteria->add(RingtoneStatisticNewPeer::COMMENT_MONTH_NO, $this->comment_month_no);
		if ($this->isColumnModified(RingtoneStatisticNewPeer::COMMENT_YEAR_NO)) $criteria->add(RingtoneStatisticNewPeer::COMMENT_YEAR_NO, $this->comment_year_no);
		if ($this->isColumnModified(RingtoneStatisticNewPeer::COMMENT_TODAY)) $criteria->add(RingtoneStatisticNewPeer::COMMENT_TODAY, $this->comment_today);
		if ($this->isColumnModified(RingtoneStatisticNewPeer::COMMENT_THIS_WEEK)) $criteria->add(RingtoneStatisticNewPeer::COMMENT_THIS_WEEK, $this->comment_this_week);
		if ($this->isColumnModified(RingtoneStatisticNewPeer::COMMENT_THIS_MONTH)) $criteria->add(RingtoneStatisticNewPeer::COMMENT_THIS_MONTH, $this->comment_this_month);
		if ($this->isColumnModified(RingtoneStatisticNewPeer::COMMENT_TOTAL)) $criteria->add(RingtoneStatisticNewPeer::COMMENT_TOTAL, $this->comment_total);
		if ($this->isColumnModified(RingtoneStatisticNewPeer::VOTE_DAY_NO)) $criteria->add(RingtoneStatisticNewPeer::VOTE_DAY_NO, $this->vote_day_no);
		if ($this->isColumnModified(RingtoneStatisticNewPeer::VOTE_WEEK_NO)) $criteria->add(RingtoneStatisticNewPeer::VOTE_WEEK_NO, $this->vote_week_no);
		if ($this->isColumnModified(RingtoneStatisticNewPeer::VOTE_MONTH_NO)) $criteria->add(RingtoneStatisticNewPeer::VOTE_MONTH_NO, $this->vote_month_no);
		if ($this->isColumnModified(RingtoneStatisticNewPeer::VOTE_YEAR_NO)) $criteria->add(RingtoneStatisticNewPeer::VOTE_YEAR_NO, $this->vote_year_no);
		if ($this->isColumnModified(RingtoneStatisticNewPeer::VOTE_TODAY)) $criteria->add(RingtoneStatisticNewPeer::VOTE_TODAY, $this->vote_today);
		if ($this->isColumnModified(RingtoneStatisticNewPeer::VOTE_THIS_WEEK)) $criteria->add(RingtoneStatisticNewPeer::VOTE_THIS_WEEK, $this->vote_this_week);
		if ($this->isColumnModified(RingtoneStatisticNewPeer::VOTE_THIS_MONTH)) $criteria->add(RingtoneStatisticNewPeer::VOTE_THIS_MONTH, $this->vote_this_month);
		if ($this->isColumnModified(RingtoneStatisticNewPeer::VOTE_TOTAL)) $criteria->add(RingtoneStatisticNewPeer::VOTE_TOTAL, $this->vote_total);
		if ($this->isColumnModified(RingtoneStatisticNewPeer::PLAY_DAY_NO)) $criteria->add(RingtoneStatisticNewPeer::PLAY_DAY_NO, $this->play_day_no);
		if ($this->isColumnModified(RingtoneStatisticNewPeer::PLAY_WEEK_NO)) $criteria->add(RingtoneStatisticNewPeer::PLAY_WEEK_NO, $this->play_week_no);
		if ($this->isColumnModified(RingtoneStatisticNewPeer::PLAY_MONTH_NO)) $criteria->add(RingtoneStatisticNewPeer::PLAY_MONTH_NO, $this->play_month_no);
		if ($this->isColumnModified(RingtoneStatisticNewPeer::PLAY_YEAR_NO)) $criteria->add(RingtoneStatisticNewPeer::PLAY_YEAR_NO, $this->play_year_no);
		if ($this->isColumnModified(RingtoneStatisticNewPeer::PLAY_TODAY)) $criteria->add(RingtoneStatisticNewPeer::PLAY_TODAY, $this->play_today);
		if ($this->isColumnModified(RingtoneStatisticNewPeer::PLAY_THIS_WEEK)) $criteria->add(RingtoneStatisticNewPeer::PLAY_THIS_WEEK, $this->play_this_week);
		if ($this->isColumnModified(RingtoneStatisticNewPeer::PLAY_THIS_MONTH)) $criteria->add(RingtoneStatisticNewPeer::PLAY_THIS_MONTH, $this->play_this_month);
		if ($this->isColumnModified(RingtoneStatisticNewPeer::PLAY_TOTAL)) $criteria->add(RingtoneStatisticNewPeer::PLAY_TOTAL, $this->play_total);
		if ($this->isColumnModified(RingtoneStatisticNewPeer::RECENT_DOWNLOAD_USERNAME)) $criteria->add(RingtoneStatisticNewPeer::RECENT_DOWNLOAD_USERNAME, $this->recent_download_username);
		if ($this->isColumnModified(RingtoneStatisticNewPeer::RECENT_DOWNLOAD_USER_ID)) $criteria->add(RingtoneStatisticNewPeer::RECENT_DOWNLOAD_USER_ID, $this->recent_download_user_id);
		if ($this->isColumnModified(RingtoneStatisticNewPeer::RECENT_DOWNLOAD_DATETIME)) $criteria->add(RingtoneStatisticNewPeer::RECENT_DOWNLOAD_DATETIME, $this->recent_download_datetime);
		if ($this->isColumnModified(RingtoneStatisticNewPeer::CATEGORY_ID)) $criteria->add(RingtoneStatisticNewPeer::CATEGORY_ID, $this->category_id);
		if ($this->isColumnModified(RingtoneStatisticNewPeer::CATEGORY_NAME)) $criteria->add(RingtoneStatisticNewPeer::CATEGORY_NAME, $this->category_name);
		if ($this->isColumnModified(RingtoneStatisticNewPeer::CREATOR_ID)) $criteria->add(RingtoneStatisticNewPeer::CREATOR_ID, $this->creator_id);
		if ($this->isColumnModified(RingtoneStatisticNewPeer::ARTIST_ID)) $criteria->add(RingtoneStatisticNewPeer::ARTIST_ID, $this->artist_id);

		return $criteria;
	}

	
	public function buildPkeyCriteria()
	{
		$criteria = new Criteria(RingtoneStatisticNewPeer::DATABASE_NAME);

		$criteria->add(RingtoneStatisticNewPeer::ID, $this->id);

		return $criteria;
	}

	
	public function getPrimaryKey()
	{
		return $this->getId();
	}

	
	public function setPrimaryKey($key)
	{
		$this->setId($key);
	}

	
	public function copyInto($copyObj, $deepCopy = false)
	{

		$copyObj->setRingtoneId($this->ringtone_id);

		$copyObj->setDownloadDayNo($this->download_day_no);

		$copyObj->setDownloadWeekNo($this->download_week_no);

		$copyObj->setDownloadMonthNo($this->download_month_no);

		$copyObj->setDownloadYearNo($this->download_year_no);

		$copyObj->setDownloadToday($this->download_today);

		$copyObj->setDownloadThisWeek($this->download_this_week);

		$copyObj->setDownloadThisMonth($this->download_this_month);

		$copyObj->setDownloadTotal($this->download_total);

		$copyObj->setDownloadYesterday($this->download_yesterday);

		$copyObj->setDownloadLastWeek($this->download_last_week);

		$copyObj->setDownloadLastMonth($this->download_last_month);

		$copyObj->setCommentDayNo($this->comment_day_no);

		$copyObj->setCommentWeekNo($this->comment_week_no);

		$copyObj->setCommentMonthNo($this->comment_month_no);

		$copyObj->setCommentYearNo($this->comment_year_no);

		$copyObj->setCommentToday($this->comment_today);

		$copyObj->setCommentThisWeek($this->comment_this_week);

		$copyObj->setCommentThisMonth($this->comment_this_month);

		$copyObj->setCommentTotal($this->comment_total);

		$copyObj->setVoteDayNo($this->vote_day_no);

		$copyObj->setVoteWeekNo($this->vote_week_no);

		$copyObj->setVoteMonthNo($this->vote_month_no);

		$copyObj->setVoteYearNo($this->vote_year_no);

		$copyObj->setVoteToday($this->vote_today);

		$copyObj->setVoteThisWeek($this->vote_this_week);

		$copyObj->setVoteThisMonth($this->vote_this_month);

		$copyObj->setVoteTotal($this->vote_total);

		$copyObj->setPlayDayNo($this->play_day_no);

		$copyObj->setPlayWeekNo($this->play_week_no);

		$copyObj->setPlayMonthNo($this->play_month_no);

		$copyObj->setPlayYearNo($this->play_year_no);

		$copyObj->setPlayToday($this->play_today);

		$copyObj->setPlayThisWeek($this->play_this_week);

		$copyObj->setPlayThisMonth($this->play_this_month);

		$copyObj->setPlayTotal($this->play_total);

		$copyObj->setRecentDownloadUsername($this->recent_download_username);

		$copyObj->setRecentDownloadUserId($this->recent_download_user_id);

		$copyObj->setRecentDownloadDatetime($this->recent_download_datetime);

		$copyObj->setCategoryId($this->category_id);

		$copyObj->setCategoryName($this->category_name);

		$copyObj->setCreatorId($this->creator_id);

		$copyObj->setArtistId($this->artist_id);


		$copyObj->setNew(true);

		$copyObj->setId(NULL); 
	}

	
	public function copy($deepCopy = false)
	{
				$clazz = get_class($this);
		$copyObj = new $clazz();
		$this->copyInto($copyObj, $deepCopy);
		return $copyObj;
	}

	
	public function getPeer()
	{
		if (self::$peer === null) {
			self::$peer = new RingtoneStatisticNewPeer();
		}
		return self::$peer;
	}

} 